#{extends 'main.html' /}
#{set title:'Home' /}

<form action="@{Products.saveProduct}" method="get" accept-charset="utf-8">
    <input type="hidden" value="${product.id}">
	产品号：<input type="text" value="${product.productno}" name="product.productno" placeholder="productno"><br>
	产品名称：<input type="text" value="${product.productName}" name="product.productName" placeholder="productName"><br>
	详细描述：<input type="text" value="${product.description}" name="product.description" placeholder="description"><br>
	价格：<input type="text" value="${product.price}" name="product.price" placeholder="price"><br>	
	产品类型<select name="product.producttype_id" >
	<option value="product.producttype_id" selected="selected">
		 ${product.getPuductTypeName(product.producttype_id)}
	 </option>
	#{list items:productTypeList, as:'pr'}	
		<option value="${pr.id}"> ${pr.producttypename}</option>
	#{/list}
	</select><br>
	<input type="submit" value="submit">
</form> 
